
import apiType, {
    GET_WAREHOUSE_SCHEDULE_IN,
    GET_WAREHOUSE_SCHEDULE_OUT
} from "@constants/ActionTypes";

const initialState = {
    warehouseScheduleList: {},    //调入 或者 调出列表
}

export default function update(state = initialState, action) {
    const { response, params, payload } = action
    switch (action.type) {
        case apiType(GET_WAREHOUSE_SCHEDULE_IN).success:
            return {
                ...state,
                warehouseScheduleList: response,
            }
        case apiType(GET_WAREHOUSE_SCHEDULE_OUT).success:
            return {
                ...state,
                warehouseScheduleList: response,
            }

        default:
            return state
    }
}